package grm.role;

import grm.info.IGood;

import java.util.ArrayList;

public class Merchant extends RoleBase {
    private ArrayList<IGood> goods = new ArrayList<>();
    @Override
    public void login() {
        System.out.println("Login as Merchant");
    }
    public void add(IGood good) {
        goods.add(good);
    }
    @Override
    public void work() {
        System.out.println("Welcome, merchant");
    }


    public void addGood() {

    }

    public void setPrice(String id, int newPrice) {

    }

    public void setDiscount(String id, double disc) {

    }

    @Override
    public String toString() {
        return "Merchant{" +
                "goods=" + goods +
                '}';
    }
}
